<?php
/**
 * Created by PhpStorm.
 * User: mojie126
 * Date: 2017/7/4 0004
 * Time: 下午 17:26
 */

namespace app\index\model;

use think\Model;

class Information extends Model
{
	static public function getAuthor($id)
	{
		if (!empty($id)) {
			$res = Information::get($id)->getAttr("author");
		} else {
			$res = $id;
		}

		return $res;
	}
}